package com.szly.phm.common.utils;

import com.baomidou.mybatisplus.core.injector.AbstractMethod;
import com.baomidou.mybatisplus.core.injector.methods.SelectCount;
import com.baomidou.mybatisplus.core.injector.methods.SelectList;
import com.baomidou.mybatisplus.core.injector.methods.SelectPage;
import com.baomidou.mybatisplus.extension.injector.methods.InsertBatchSomeColumn;
import com.github.yulichang.injector.MPJSqlInjector;

import java.util.List;

public class DataScopeSqlInjector extends MPJSqlInjector {
    @Override
    public List<AbstractMethod> getMethodList(Class<?> mapperClass){
        List<AbstractMethod> methodList =super.getMethodList(mapperClass);
        methodList.add(new SelectList());
        methodList.add(new SelectPage());
        methodList.add(new SelectCount());
        methodList.add(new InsertBatchSomeColumn());
        return methodList;
    }
}
